<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <script>

            function f1(){

                console.log(Math.random());

                //parseInt(Math.random()*(b-a+1))+a

            }

        </script>
    </head>
    <body onload="f1();">

    </body>
</html>